using System;

namespace Voodoo.Sauce.Internal.SDKs
{
	[Serializable]
	public class SDKVersions
	{
		public string unity;

		public string ios;

		public string android;

		public string[] GetVersionsAsArray()
		{
			return new string[3] { unity, ios, android };
		}

		public override bool Equals(object obj)
		{
			if (obj == null || GetType() != obj.GetType())
			{
				return false;
			}
			SDKVersions sDKVersions = (SDKVersions)obj;
			if ((unity ?? "") != (sDKVersions.unity ?? "") || (ios ?? "") != (sDKVersions.ios ?? "") || (android ?? "") != (sDKVersions.android ?? ""))
			{
				return false;
			}
			return true;
		}

		public override int GetHashCode()
		{
			return (((((unity != null) ? unity.GetHashCode() : 0) * 397) ^ ((ios != null) ? ios.GetHashCode() : 0)) * 397) ^ ((android != null) ? android.GetHashCode() : 0);
		}

		public bool IsEmpty()
		{
			if (string.IsNullOrEmpty(unity) && string.IsNullOrEmpty(ios) && string.IsNullOrEmpty(android))
			{
				return true;
			}
			return false;
		}
	}
}
